package com.poker.iuious.yhyhjs.jklimj;

import java.util.Objects;

public class ChatBean {
    public static final int SEND=1;//发送消息
    public static final int RECEIVE=2;//接收消息
    private int state;//消息的状态（是接收还是发送）
    private String message;//消息的内容

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ChatBean chatBean = (ChatBean) o;
        return state == chatBean.state && Objects.equals(message, chatBean.message);
    }

    @Override
    public int hashCode() {
        return Objects.hash(state, message);
    }
}

